package com.station.client.Distribution;


public class Distribution           //закон распределения (идентификатор, параметр1, параметр2)
{
    private double next_time = 0;
    private IDistribution distribution;

    public Distribution(int id, int k1, int k2)
    {
        if (id == 0)
        {
            distribution = new UniformDistribution(k1,k2);
        }
        else if (id == 1)
        {
            distribution = new NormalDistribution(k1,k2);
        }
        else if (id == 2)
        {
            distribution = new ExponentialDistribution(k1);
        }
    }

    public int getNext()
    {
        return (int)distribution.Next();
    }
}

